﻿using System.Net.Sockets;
using eLoop;

namespace eNets.CBK.Sockets;

sealed class TcpSocketRcvOper : ASocketRcvOper
{
    public TcpSocketRcvOper(Socket socket, ITaskScheduler scheduler, SocketCompletedDelegate rcvCompleted)
        : base(socket, rcvCompleted, scheduler)
    {
    }

    protected override bool SocketOperationAsync(Socket socket, SocketArgs args)
    {
        return socket.ReceiveAsync(args);
    }
}